package designpattern.compoundPattern;

/**
 * 创建不具备修饰器的ducks
 */
public class DuckFactory extends AbstractDuckFactory {
    @Override
    public Quackable createMallardDuck() {
        return new MallarDuck();
    }

    @Override
    public Quackable createRedHeadDuck() {
        return new RedHeadDuck();
    }
//
//    @Override
//    public Quackable createDuckCall() {
//        return new DuckCall();
//    }
//
//    @Override
//    public Quackable createRubberDuck() {
//        return new RubberDuck();
//    }
}
